
function sendRequest(api,param,response) {
    var url = "http://se.xshservice.com:8080/XSWY/app/"+api+".htm";
    console.info(url);
    console.info(param);
    $.post(url, param,
        function(resp){
            console.info(resp);
            response(resp.data);
        }, "json");
}
function getParams() {
    var arr = window.location.href.split("?");
    var params = new Array();
    if (arr.length>1){
        var str = arr[1];
        $(str.split("&")).each(function () {
            var param = this.split("=");
            params[param[0]] = param[1];
        });
    }
    return params;
}